<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="p" uri="/WEB-INF/tld/page.tld" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PAD下单</title>
<jsp:include page="/header.jsp"></jsp:include>
<link href="${basePath }/css/ui.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
	function turnpage(page) {
		window.location = "${basePath}/pad/index.htm?pageNo="+page;
	}
</script>
</head>
<body>
  <div class="main">
<div class="cont">
   <h2 class="title">PAD下单列表：</h2>
   <div class="ui">
       <table class="table_list">
           <tr class="">
             <th class="">序号</th>
             <th>订单号</th>
             <th class="">类型</th>
             <th class="">包间或桌位名称</th>
             <th class="">提交员</th>
             <th class="">提交时间</th>
             <th class="">消费金额（元）</th>
             <th class="">消费明细</th>
             <th class="">备货商品</th>
             <th class="">状态</th>
             <th class="">结算</th>
           </tr>
           <c:forEach items="${orders }" var="order" varStatus="status">
           <tr class="">
             <td class="">${status.index+1 }</td>
             <td class="">${order.id }</td>
             <td class="">包间消费</td>
             <td class="">${order.area_name }</td>
             <td class="">${order.user_name }</td>
             <td class="">${order.start_time_display }</td>
             <td class="">${order.total_sub_display }</td>
             <td class=""><a href="${basePath }/pad/detail.htm?id=${order.id}">查看</a></td>
             <td class=""><a href="${basePath }/pad/prepare.htm?id=${order.id}">备货</a></td>
             <td class="">${order.status_display}</td>
             <td class="">
             	<c:if test="${order.status eq 1 }">
             	<a href="${basePath }/pad/pay.htm?id=${order.id}&amount=${order.total_sub_display}">结算</a>
             	</c:if>
             </td>
            </tr>
            </c:forEach>
        </table>
	    </div>
	 </div>
</div>
<p:page map="${page }"></p:page>
</body>
</html>